01.12.2013, 07:04
That is my script and here is the include
The goto command
And the errors
I am noob at coding so help me please
Quote:
#include <a_samp> #include <zcmd> #include <sscanf2> new Gate; new Pickup; #if defined FILTERSCRIPT public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Test by Fanfo"); print("--------------------------------------\n"); return 1; } |
Quote:
if (strcmp("/kill", cmdtext, true, 5) == 0) { SetPlayerHealth (playerid, 0); SendClientMessage (playerid, 0x00000000, "You Have Commited Suicide!"); return 1; } CMD:goto(playerid, params[]) { new targetid; if(sscanf(params,"d", targetid) return SendClientMessage(playerid, 0xFFFFFFAA, "Usage:/goto [PLAYERID]"); if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, 0xFFFFFFAA,"Player Is Not Connected"); new Float,Float:y,Float:z; GetPlayerPos(targetid, x, y, z); SetPlayerPos(playerid, x+1, y+1, z); SendClientMessage(playerid, 0xFFFFFFAA, "You have been successfully Teleported!"); return 1; } |
Quote:
C:\Users\zero\Desktop\SAMP Server\gamemodes\Test.pwn(349) : warning 217: loose indentation C:\Users\zero\Desktop\SAMP Server\gamemodes\Test.pwn(357) : error 029: invalid expression, assumed zero C:\Users\zero\Desktop\SAMP Server\gamemodes\Test.pwn(357) : error 017: undefined symbol "cmd_goto" C:\Users\zero\Desktop\SAMP Server\gamemodes\Test.pwn(357) : error 029: invalid expression, assumed zero C:\Users\zero\Desktop\SAMP Server\gamemodes\Test.pwn(357) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |