Pawno error 010 invalid function or declaration

pawno error 010 invalid function or declaration

C:\Users\LUKA ZA SKOLU\Desktop\nk\gamemodes\eltano.pwn(30515): error 010: invalid function or declaration Linija 30512: Pawno Code. 1 General Pawn Error List; 2 Error categories "case" warning 215: expression has no effect error 010: invalid function or declaration. C:\Users\vblon\OneDrive\Ðàáî÷èé ñòîë\00000\1356429578_diskoteka.pwn(1): error 010: invalid function or declaration. pawno error 010 invalid function or declaration Message # 5

Private

Group: Users

Messages: 1

Reputation: 0

Status: Offline

I can help u O I wish you still need help 
NoobVsProDate: Saturday, 2018-09-15, 9:15 AM Scripting

Message # 3

Private

Group: Users

Messages: 4

Reputation: 0

Status: Offline

Please post a virus scan.
 
matthew_warneDate: Saturday, 2016-09-17, 4:33 AM Message # 7

Private

Group: Users

Messages: 4

Reputation: 0

Status: Offline

Check your anti virus
 

1 Comments

Leave a Comment

Proudly Powered By WordPress.

Theme Kaira by .

rumorz420Date: Tuesday, pawno error 010 invalid function or declaration, 2021-06-22, 3:13 AM
robertocaribbean
Offline

Posts:27
Threads:8
Joined: Aug 2020
Reputation:0
Location: Argentina
Hi there,

I want to use spanish words in my gamemode, but the compiler throws error when try to compile.

This throws an error: "Invalid function or declaration" in the line where "vehículo" word is.



Also when I want interfec kyedboard error use SendClientMessage, there is no error at compiler level but pawno error 010 invalid function or declaration message look weird character, instead of the character I want.

Maybe the compiler doesn't support fatal error link 1190 like " í "?






[Image: rUHhU8b.png]
matei_
Offline

Posts:6
Threads:2
Joined: May 2020
Reputation:0
Location: Romania
Those characters are not supported, same as the romanian characters: "ț, ș" etc.
robertocaribbean
Offline

Posts:27
Threads:8
Joined: Aug 2020
Reputation:0
Location: Argentina
2021-03-08, 12:58 AM (This post was last modified: 2021-03-08, 01:15 AM by robertocaribbean.)
Well, I found a partial solution.

You need to change encoding of the .pwn file. In vscode, the default encoding is "UTF-8", so I changed it to "ISO 8859-1" and fix the problem.

There is a issue, I can't use zcmd or y_commands because the compiler keeps throwing errors. But, I can use strcmp function in order to make commands without any problem.

(2021-03-07, 09:00 PM)matei_ Wrote: Those characters are not supported, same as the romanian characters: "ț, ș" etc.

So, if you want to try, there is a romanian encoding (ISO 8859-16) in vscode as well.
destiezk
Offline

Posts:41
Threads:1
Joined: Feb 2021
Reputation:3
Location: Hungary
2021-03-08, 10:34 AM (This post was last modified: 2021-03-08, 10:35 AM by destiezk.)
Y_Less
Offline

Posts:323
Threads:16
Joined: Feb 2019
Reputation:90
You can use y_commands, but you need to encode the command names using punycode (the same encoding that URLs use):


Becomes:


If you use a website like this one: https://www.punycoder.com/ The result will be "xn--vehculo-9ya", pawno error 010 invalid function or declaration, remove the "xn--" prefix and change the "-" to "@". I keep meaning to make a site to do it for y_commands, just never got around to it.
robertocaribbean
Offline

Posts:27
Threads:8
Joined: Aug 2020
Reputation:0
Location: Argentina
2021-03-08, 10:13 PM (This post was last modified: 2021-03-10, 05:15 PM by robertocaribbean.)
(2021-03-08, 07:55 PM)Y_Less Wrote: You can use y_commands, but you need to encode the command names using punycode (the same encoding that URLs use):


Becomes:


If you use a website like this one: https://www.punycoder.com/ The result will be "xn--vehculo-9ya", remove the "xn--" prefix and change the "-" to "@".  I keep meaning to make a site to do it for y_commands, just never got around to it.

Thank you for your response!

I tried:

But this has no effect, I need to wrote /[email protected] in game in order to work. If I wrote /vehículo, just throws "SERVER: Unknown command"

EDIT: If you want to use a fast command processor and still use accented characters, you can use pawn.cmd. You can register aliases for a command, in that way you can make it work.