ionutuidumanu Posted June 28, 2011 Posted June 28, 2011 am comanda asta pt casa de admin dar imi da erroarea asta:C:\Documents and Settings\All Users\Documents\In Lucru\Best\Server DKR\gamemodes\RCD.pwn(9809) : error 017: undefined symbol "PlayerInfo"C:\Documents and Settings\All Users\Documents\In Lucru\Best\Server DKR\gamemodes\RCD.pwn(9809) : warning 215: expression has no effectC:\Documents and Settings\All Users\Documents\In Lucru\Best\Server DKR\gamemodes\RCD.pwn(9809) : error 001: expected token: ";", but found "]"C:\Documents and Settings\All Users\Documents\In Lucru\Best\Server DKR\gamemodes\RCD.pwn(9809) : error 029: invalid expression, assumed zeroC:\Documents and Settings\All Users\Documents\In Lucru\Best\Server DKR\gamemodes\RCD.pwn(9809) : fatal error 107: too many error messages on one lineCompilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase4 Errors.Uitati si comandaCOMMAND:adminhouse(playerid,params[]) { if(IsPlayerConnected(playerid)) { if(IsPlayerAdmin(playerid)) { SetPlayerPos(playerid, 2612.9089,1588.0884,10.8203); GameTextForPlayer(playerid, "~w~Bun Venit Acasa",5000,1); SetPlayerInterior(playerid,0); SetPlayerFacingAngle(playerid, 0); PlayerInfo[playerid][pInt] = 0; return 1; } else { SendClientMessage(playerid, COLOR_GREY, " You are not authorized to use that command."); return 1; } } return 1; } The Legend
IstuntmanI Posted June 28, 2011 Posted June 28, 2011 Voi nu ganditi sau nu stiti engleza.Corect:COMMAND:adminhouse(playerid,params[]) { if(IsPlayerConnected(playerid)) { if(IsPlayerAdmin(playerid)) { SetPlayerPos(playerid, 2612.9089,1588.0884,10.8203); GameTextForPlayer(playerid, "~w~Bun Venit Acasa",5000,1); SetPlayerInterior(playerid,0); SetPlayerFacingAngle(playerid, 0); return 1; } else { SendClientMessage(playerid, COLOR_GREY, " You are not authorized to use that command."); return 1; } } return 1; } Trebuia doar sa scoti PlayerInfo[playerid][pInt] = 0;
scr3ws0f7 Posted June 28, 2011 Posted June 28, 2011 mda si nu trebuie si :new PlayerInfo[MAX_PLAYERS][Player];??? <a href=http://devilone.ro></a>
xxSPEEDYxx Posted June 29, 2011 Posted June 29, 2011 la ce sa ii trebuie: PlayerInfo[playerid][pInt] = 0; mai bn pune asa: SetPlayerInterrior(playerid, 0); si gata... a si da-l face tre sa-l faca asa: enum pInfo { pInt }; new PlayerInfo[MAX_PLAYERS][pInfo]; Fara reclama in semnatura!
Question
ionutuidumanu
am comanda asta pt casa de admin dar imi da erroarea asta:
C:\Documents and Settings\All Users\Documents\In Lucru\Best\Server DKR\gamemodes\RCD.pwn(9809) : error 017: undefined symbol "PlayerInfo"
C:\Documents and Settings\All Users\Documents\In Lucru\Best\Server DKR\gamemodes\RCD.pwn(9809) : warning 215: expression has no effect
C:\Documents and Settings\All Users\Documents\In Lucru\Best\Server DKR\gamemodes\RCD.pwn(9809) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\All Users\Documents\In Lucru\Best\Server DKR\gamemodes\RCD.pwn(9809) : error 029: invalid expression, assumed zero
C:\Documents and Settings\All Users\Documents\In Lucru\Best\Server DKR\gamemodes\RCD.pwn(9809) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Uitati si comanda
COMMAND:adminhouse(playerid,params[])
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerAdmin(playerid))
{
SetPlayerPos(playerid, 2612.9089,1588.0884,10.8203);
GameTextForPlayer(playerid, "~w~Bun Venit Acasa",5000,1);
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You are not authorized to use that command.");
return 1;
}
}
return 1;
}
The Legend
3 answers to this question
Recommended Posts