Does this really crash my pawno?
#1

I recently scripted this:
Код:
CMD:parkinglot
{
   new pgate = CreateObject(2933,1717.0000000,1308.0000000,11.5000000,0.0000000,0.0000000,90.0000000);
   new pmoney = GetPlayerMoney
   if(pmoney(playerid, <500)) return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to park your car here!")
   if(GetPlayerState(playerid, PLAYER_STATE_ONFOOT)) return SendClientMessage(playerid, COLOR_RED, "You're not in a vehicle!")
   MoveObject(gate, 1717.0000000,1308.0000000,1.5000000, 5);
   return 1;
 }
And when I compile it my pawno just crashes? Does it really have so many errors that it crashes my pawno or?
Reply
#2

pawn Код:
CMD:parkinglot(playerid, params[])
Reply
#3

i didnt paste that? thats over there :S
Reply
#4

Код:
if(GetPlayerMoney(playerid, <500)) return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to park your car here!")
At this line i get these errors
Код:
C:\Users\MARKO\Desktop\Learning\gamemodes\Tutorial.pwn(257) : error 029: invalid expression, assumed zero
C:\Users\MARKO\Desktop\Learning\gamemodes\Tutorial.pwn(257) : warning 215: expression has no effect
C:\Users\MARKO\Desktop\Learning\gamemodes\Tutorial.pwn(257) : error 001: expected token: ";", but found ")"
C:\Users\MARKO\Desktop\Learning\gamemodes\Tutorial.pwn(257) : error 029: invalid expression, assumed zero
C:\Users\MARKO\Desktop\Learning\gamemodes\Tutorial.pwn(257) : fatal error 107: too many error messages on one line
Reply
#5

pawn Код:
if(GetPlayerMoney(playerid) < 500)) return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to park your car here!");
Reply
#6

pawn Код:
CMD:parkinglot
{
   if(GetPlayerMoney(playerid) < 500) return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to park your car here!")
   if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, COLOR_RED, "You're not in a vehicle!")
   MoveObject(CreateObject(2933,1717.0000000,1308.0000000,11.5000000,0.0000000,0.0000000,90.0000000), 1717.0000000,1308.0000000,1.5000000, 5);
   return 1;
 }
Reply


Forum Jump:


Users browsing this thread: