OnPlayerDeath
#1

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    new*weaponid=GetPlayerWeapon(killerid);//Line 11191
****new*weapname[64];//Line 11192
    GetWeaponName(weaponid,*weapname,*sizeof(weapname));
****SetPVarString(playerid,*"gotkilledby",*PlayerRPName(killerid));
****SetPVarString(playerid,*"gotkilledbygun",*weapname);
    return 1;
}
Error Lines
PHP код:
new*weaponid=GetPlayerWeapon(killerid);//Line 11191
****new*weapname[64];//Line 11192 
Errors
PHP код:
RP.pwn(11191) : error 001expected token"-identifier-"but found "*"
RP.pwn(11192) : error 029invalid expressionassumed zero
RP
.pwn(11192) : error 029invalid expressionassumed zero
RP
.pwn(11192) : error 029invalid expressionassumed zero
RP
.pwn(11192) : fatal error 107too many error messages on one line 
Reply
#2

Can't you read the errors yourself? What's up with all the asterisks (*) ?
Reply
#3

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{

    new weaponid=GetPlayerWeapon(killerid);//Line 11191
    new weapname[64];//Line 11192
    GetWeaponName(weaponid, weapname,sizeof(weapname));
    SetPVarString(playerid, "gotkilledby",PlayerRPName(killerid));
    SetPVarString(playerid, "gotkilledbygun",weapname);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)