3 erros help..
#1

Код:
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.
Reply
#2

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;
}
Reply
#3

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 ******
Reply
#4

thnx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)