SA-MP Forums Archive
[help] i have errors - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [help] i have errors (/showthread.php?tid=256041)



[help] i have errors - mariomako - 18.05.2011

Why i have this errors:

Код:
D:\Infinity DM Stunt\gamemodes\infinitygm.pwn(1152) : error 029: invalid expression, assumed zero
D:\Infinity DM Stunt\gamemodes\infinitygm.pwn(1152) : error 029: invalid expression, assumed zero
D:\Infinity DM Stunt\gamemodes\infinitygm.pwn(1152) : error 029: invalid expression, assumed zero
D:\Infinity DM Stunt\gamemodes\infinitygm.pwn(1152) : fatal error 107: too many error messages on one line
on this code

pawn Код:
stock SendClientMessageUTF8(playerid, color, text[])
{
new str[128];
UTF8_Decode(text, str, sizeof(str));
SendClientMessage(playerid, color, str);
return true;
}
This is line 1152

Код:
 new str[128];



Re: [help] i have errors - mariomako - 18.05.2011

bump!


Re: [help] i have errors - xalith - 18.05.2011

im not that good at scripting, besides you only showed a little part of your code so im gonna assume that your error is in not defining what the str is. e.g
myString[128] = "text here";


Re: [help] i have errors - gamer931215 - 18.05.2011

Are you using any includes/other functions ?
because im getting different errors:
Код:
C:\Users\Jonathan\Desktop\test.pwn(12) : error 017: undefined symbol "UTF8_Decode"
C:\Users\Jonathan\Desktop\test.pwn(12) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.