an error - 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)
+--- Thread: an error (
/showthread.php?tid=409087)
an error -
Stanford - 20.01.2013
I've got this errors
Код:
C:\Users\TSC\Desktop\NGRP edits\USRP4.pwn(20135) : error 029: invalid expression, assumed zero
C:\Users\TSC\Desktop\NGRP edits\USRP4.pwn(20135) : error 017: undefined symbol "cmd_prepare"
C:\Users\TSC\Desktop\NGRP edits\USRP4.pwn(20135) : error 029: invalid expression, assumed zero
C:\Users\TSC\Desktop\NGRP edits\USRP4.pwn(20135) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Here are the lines:
Код:
new PlayerDJ[MAX_PLAYERS][DJ];
new PartyPrepared;
new Float:partyX, Float:partyY, Float:partyZ;
new PplJoinParty;
new PartyOn;
CMD:prepare(playerid, params[])
{
if(PlayerDJ[playerid][pMember] == 1)
{
new vehID;
vehID = GetPlayerVehicleID(playerid);
if(GetVehicleModel(vehID) == 459)
{
if(PlayerDJ[playerid][pCD] >= 1)
{
new str[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
PlayerDJ[playerid][pCD]--;
format(str, sizeof(str), "DJ %s [ID:%d] is preparing for a party, if you wish to join use (/joinparty)", pName, playerid);
SendClientMessageToAll(COLOR_YELLOW, str);
SendClientMessage(playerid, COLOR_WHITE, "You have prepared for a party correctly, now you must wait for atleast 5 people to arrive.");
GetPlayerPos(playerid, partyX, partyY, partyZ);
PartyPrepared = 1;
}
}
}
return 1;
}
THATS THE LINES:
Код:
thats the line:
20.130.new PlayerDJ[MAX_PLAYERS][DJ];
20.131.new PartyPrepared;
20.132.new Float:partyX, Float:partyY, Float:partyZ;
20.133.new PplJoinParty;
20134. new PartyOn;
20135.CMD:prepare(playerid, params[])
20136.{
Help me and you'll get a reputation, thank you..
Re: an error -
InfiniTy. - 20.01.2013
You'll need zcmd
https://sampforum.blast.hk/showthread.php?tid=91354
@SilverKiller
Oh.. you edited.. still ..
Re: an error -
SilverKiller - 20.01.2013
Show Line 20135