02.01.2014, 06:15
Hi all,
i am new to this forum and this is my first topic.
anyways i am using this script as a .include
hope someone can help me
but i get these errors:
i am new to this forum and this is my first topic.
anyways i am using this script as a .include
hope someone can help me
Код:
COMMAND:rc(playerid,params[])
{
if(APlayerData[playerid][PlayerLevel] < 1) return SendClientMessage(playerid, 0xFF0000FF, "You are not authorized to use that command!");
for(new car = 1; car <= 268; car++)
{
if(IsVehicleEmpty(car)) SetVehicleToRespawn(car);
}
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "SERVER: All unused cars respawned by %s.", sendername);
BroadCast(0xFFFFFFFF,string);
return 1;
}
stock IsVehicleEmpty(vehicleid)
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerInVehicle(i, vehicleid)) return 0;
}
return 1;
}
Код:
D:\games\gta trucking server\pawno\include\thegamer_PlayerCommands.inc(4913) : error 017: undefined symbol "sendername" D:\games\gta trucking server\pawno\include\thegamer_PlayerCommands.inc(4913) : error 017: undefined symbol "sendername" D:\games\gta trucking server\pawno\include\thegamer_PlayerCommands.inc(4913) : error 029: invalid expression, assumed zero D:\games\gta trucking server\pawno\include\thegamer_PlayerCommands.inc(4913) : fatal error 107: too many error messages on one line


