19.04.2012, 11:46
(
Последний раз редактировалось Avi57; 19.04.2012 в 11:58.
Причина: i forget something
)
Hey Guys i tryed making a Mission Script i get this:
When i Compile it shows error:
[code]C:\Documents and Settings\User\Desktop\server\filterscripts\work.pw n(15) : warning 217: loose indentation
C:\Documents and Settings\User\Desktop\server\filterscripts\work.pw n(15) : error 029: invalid expression, assumed zero
C:\Documents and Settings\User\Desktop\server\filterscripts\work.pw n(15) : error 004: function "OnPlayerEnterCheckpoint" is not implemented
C:\Documents and Settings\User\Desktop\server\filterscripts\work.pw n(22) : warning 225: unreachable code
C:\Documents and Settings\User\Desktop\server\filterscripts\work.pw n(22) : error 029: invalid expression, assumed zero
C:\Documents and Settings\User\Desktop\server\filterscripts\work.pw n(22) : error 029: invalid expression, assumed zero
C:\Documents and Settings\User\Desktop\server\filterscripts\work.pw n(37) : error 030: compound statement not closed at the end of file (started at line 24)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.[code]
Anyone can tell me whats Wrong ? And i need help about this things too:
*How can i make something like that if player get in 1 checkpoint and another should get after 1-2 seconds
*and Last how can i give player money like 10000 to 15000 !!!! It Means it should get between them and every time changed.
AND ITS A FS not GM !!
Thanks in Advance !! +1 Rep for who Helped ME !!!!
Код:
#include <a_samp> public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/work", true)) { SetPlayerCheckpoint(playerid, 1644.4673, -2416.9844, 13.5547, 5.0); } else { if(IsPlayerInVehicle(playerid, 519) || IsPlayerInVehicle(playerid, 592) || IsPlayerInVehicle(playerid, 577)) return SendClientMessage(playerid,0xFFFFFFFFF,"Yor Need to be In A Vehicle to Do work!"); return 1; } public OnPlayerEnterCheckpoint(playerid) { GivePlayerMoney(playerid, 10000); DisablePlayerCheckpoint(playerid); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/stopwork", true)) { if(GetPlayerMoney(playerid) >= 1000) SendClientMessage(playerid,0xFFFFFFFFF,"You Have Canceled the Work!"); } else { if(GetPlayerMoney(playerid) >= 999) SendClientMessage(playerid,0xFFFFFFFFF,"You Need $1000 to Cancel the Work!"); return 1; }
[code]C:\Documents and Settings\User\Desktop\server\filterscripts\work.pw n(15) : warning 217: loose indentation
C:\Documents and Settings\User\Desktop\server\filterscripts\work.pw n(15) : error 029: invalid expression, assumed zero
C:\Documents and Settings\User\Desktop\server\filterscripts\work.pw n(15) : error 004: function "OnPlayerEnterCheckpoint" is not implemented
C:\Documents and Settings\User\Desktop\server\filterscripts\work.pw n(22) : warning 225: unreachable code
C:\Documents and Settings\User\Desktop\server\filterscripts\work.pw n(22) : error 029: invalid expression, assumed zero
C:\Documents and Settings\User\Desktop\server\filterscripts\work.pw n(22) : error 029: invalid expression, assumed zero
C:\Documents and Settings\User\Desktop\server\filterscripts\work.pw n(37) : error 030: compound statement not closed at the end of file (started at line 24)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.[code]
Anyone can tell me whats Wrong ? And i need help about this things too:
*How can i make something like that if player get in 1 checkpoint and another should get after 1-2 seconds
*and Last how can i give player money like 10000 to 15000 !!!! It Means it should get between them and every time changed.
AND ITS A FS not GM !!
Thanks in Advance !! +1 Rep for who Helped ME !!!!