11.11.2013, 12:22
so here's the part of the script i'm facing problem with :/
This are the Errors
Lines are :
thanks in advance , +rep will be given for anyone help me out!
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/joinjob", cmdtext, true, 10) == 0) { SendClientMessage(playerid, -1,"Congratulation, you have joined the Pizza boy job"); Pizzajob = 1; } else SendClientMessage(playerid, -1, "You already joined this job, use /pizzahelp for more informations"); } if (strcmp("/pizzahelp", cmdtext, true, 10) == 0) { SendClientMessage(playerid, 0x37FF00FF, " -------------------- Pizzaboy job help -------------------- "); SendClientMessage(playerid, 0xF5FF00FF, "[JOBHELP]:Get on a pizza bike to start the job! "); SendClientMessage(playerid, 0x37FF00FF, "[JOBHELP]:Deliver the Pizza to the Checkpoint then drive the bike back to Well stacked pizza"); SendClientMessage(playerid, 0xF5FF00FF, "[JOBHELP]:Notice:You earn some bucks as tips when you deliver the pizza."); } if (strcmp("/deliverpizza", cmdtext, true, 10) == 0) { if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 448) { if ((Pizzajob) == 1) { new rand,Float:X, Float:Y, Float:Z; rand = random(4); switch(rand) { case 0:{X = 2332.1140;Y = -1680.7076;Z = 13.7506;} case 1:{X = 2508.3562;Y = -1654.8031;Z = 13.8660;} case 2:{X = 2141.2703;Y = -1611.0664;Z = 13.8660;} case 3:{X = 1092.9705;Y = -1093.6687;Z = 25.5253;} } SetPlayerCheckpoint(playerid, X, Y, Z, 5.0); SendClientMessage(playerid, 0x37FF00FF," Drive the pizza bike to the checkpoint then bring back the bike!"); Pizza = 1; } else SendClientMessage(playerid,0xF5FF00FF,"You need to be a Pizza boy to use this command"); } else SendClientMessage(playerid,0xF5FF00FF," you have to be on a pizza bike to use this Command"); } return 1; }
Код:
C:\Users\dell\Desktop\mtgrequests\newscript\SAMP Freedom Gaming\filterscripts\ethanpizza.pwn(136) : error 010: invalid function or declaration C:\Users\dell\Desktop\mtgrequests\newscript\SAMP Freedom Gaming\filterscripts\ethanpizza.pwn(143) : error 010: invalid function or declaration C:\Users\dell\Desktop\mtgrequests\newscript\SAMP Freedom Gaming\filterscripts\ethanpizza.pwn(145) : error 010: invalid function or declaration C:\Users\dell\Desktop\mtgrequests\newscript\SAMP Freedom Gaming\filterscripts\ethanpizza.pwn(147) : error 010: invalid function or declaration C:\Users\dell\Desktop\mtgrequests\newscript\SAMP Freedom Gaming\filterscripts\ethanpizza.pwn(151) : error 010: invalid function or declaration C:\Users\dell\Desktop\mtgrequests\newscript\SAMP Freedom Gaming\filterscripts\ethanpizza.pwn(152) : error 010: invalid function or declaration C:\Users\dell\Desktop\mtgrequests\newscript\SAMP Freedom Gaming\filterscripts\ethanpizza.pwn(154) : error 010: invalid function or declaration C:\Users\dell\Desktop\mtgrequests\newscript\SAMP Freedom Gaming\filterscripts\ethanpizza.pwn(155) : error 010: invalid function or declaration C:\Users\dell\Desktop\mtgrequests\newscript\SAMP Freedom Gaming\filterscripts\ethanpizza.pwn(156) : error 010: invalid function or declaration C:\Users\dell\Desktop\mtgrequests\newscript\SAMP Freedom Gaming\filterscripts\ethanpizza.pwn(157) : error 010: invalid function or declaration C:\Users\dell\Desktop\mtgrequests\newscript\SAMP Freedom Gaming\filterscripts\ethanpizza.pwn(163) : error 010: invalid function or declaration C:\Users\dell\Desktop\mtgrequests\newscript\SAMP Freedom Gaming\filterscripts\ethanpizza.pwn(165) : error 010: invalid function or declaration C:\Users\dell\Desktop\mtgrequests\newscript\SAMP Freedom Gaming\filterscripts\ethanpizza.pwn(167) : error 010: invalid function or declaration C:\Users\dell\Desktop\mtgrequests\newscript\SAMP Freedom Gaming\filterscripts\ethanpizza.pwn(220) : warning 203: symbol is never used: "X" C:\Users\dell\Desktop\mtgrequests\newscript\SAMP Freedom Gaming\filterscripts\ethanpizza.pwn(220) : warning 203: symbol is never used: "Y" C:\Users\dell\Desktop\mtgrequests\newscript\SAMP Freedom Gaming\filterscripts\ethanpizza.pwn(220) : warning 203: symbol is never used: "Z" C:\Users\dell\Desktop\mtgrequests\newscript\SAMP Freedom Gaming\filterscripts\ethanpizza.pwn(220) : warning 203: symbol is never used: "rand" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 13 Errors.
Код:
Line 136 =>if (strcmp("/pizzahelp", cmdtext, true, 10) == 0) Line 143 =>if (strcmp("/deliverpizza", cmdtext, true, 10) == 0) Line 145 =>if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 448) Line 147 =>if ((Pizzajob) == 1) Line 151 => rand = random(4); Line 152 =>switch(rand) Line 154 =>case 0:{X = 2332.1140;Y = -1680.7076;Z = 13.7506;} Line 155 => case 1:{X = 2508.3562;Y = -1654.8031;Z = 13.8660;} Line 156 =>case 2:{X = 2141.2703;Y = -1611.0664;Z = 13.8660;} Line 157 =>case 3:{X = 1092.9705;Y = -1093.6687;Z = 25.5253;} Line 163 => else SendClientMessage(playerid,0xF5FF00FF,"You need to be a Pizza boy to use this command"); Line 165 => else SendClientMessage(playerid,0xF5FF00FF," you have to be on a pizza bike to use this Command"); Line 167 =>return 1;