SA-MP Forums Archive
3 erros help.. - 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: 3 erros help.. (/showthread.php?tid=219856)



3 erros help.. - Davz*|*Criss - 02.02.2011

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    SendDeathMessage(killerid, playerid, reason);
    format(string,sizeof string,"%s has killer %s |Weapon %d!",killerid,playerid,weaponid);
    SendClientMessageToAll(0xFFFFFFAA,string);
    return 1;
}
C:\Users\user\Desktop\Desktop files\SA-MP\gamemodes\AboveFreekBlast.pwn(376) : warning 204: symbol is assigned a value that is never used: "playertextid"
C:\Users\user\Desktop\Desktop files\SA-MP\gamemodes\AboveFreekBlast.pwn(385) : error 017: undefined symbol "string"
C:\Users\user\Desktop\Desktop files\SA-MP\gamemodes\AboveFreekBlast.pwn(385) : error 017: undefined symbol "string"
C:\Users\user\Desktop\Desktop files\SA-MP\gamemodes\AboveFreekBlast.pwn(386) : error 017: undefined symbol "string"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.


Re: 3 erros help.. - HyperZ - 02.02.2011

Put this in onplayerdeath:
pawn Код:
new string[128];
Something like this:
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    new string[128];
    SendDeathMessage(killerid, playerid, reason);
    format(string,sizeof string,"%s has killer %s |Weapon %d!",killerid,playerid,weaponid);
    SendClientMessageToAll(0xFFFFFFAA,string);
    return 1;
}



Re: 3 erros help.. - admantis - 02.02.2011

Quote:
Originally Posted by Clive
Посмотреть сообщение
pawn Код:
new string[256];
are you on nuts?
new string[118];
should make it

Read why not to use 256 by ******


Re: 3 erros help.. - Davz*|*Criss - 02.02.2011

thnx