Ich habe folgendes Problem,
Ich habe ein GM gebastelt und wollte nun eine Stuntpark von sa-mp.com einbinden, bin nun auf einen Fehler gestoßen.
Code
D:\Pawno\Untitled.pwn(2042) : error 017: undefined symbol "State"
D:\Pawno\Untitled.pwn(2044) : error 017: undefined symbol "cartype"
D:\Pawno\Untitled.pwn(2045) : error 017: undefined symbol "cartype"
D:\Pawno\Untitled.pwn(2046) : error 017: undefined symbol "cartype"
D:\Pawno\Untitled.pwn(2053) : error 017: undefined symbol "COLOR_GREEN"
D:\Pawno\Untitled.pwn(2059) : error 017: undefined symbol "State"
D:\Pawno\Untitled.pwn(2061) : error 017: undefined symbol "cartype"
D:\Pawno\Untitled.pwn(2062) : error 017: undefined symbol "cartype"
D:\Pawno\Untitled.pwn(2063) : error 017: undefined symbol "cartype"
D:\Pawno\Untitled.pwn(2070) : error 017: undefined symbol "COLOR_LIGHTBLUE"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
10 Errors.
Alles anzeigen
So sieht jeweils die Zeile aus:
Code
if(strcmp(cmdtext, "/stuntcity2", true) == 0)
{
SetPlayerInterior(playerid,0);
{if(State!=PLAYER_STATE_DRIVER)
{SetPlayerPos(playerid,2000.501831, -3995.440918, 6.885561);}
else if(IsPlayerInVehicle(playerid, cartype) == 1)
{SetVehiclePos(cartype,2000.501831, -3995.440918, 6.885561);
SetVehicleZAngle(cartype,266.6323);}
else
{SetPlayerPos(playerid,2000.501831, -3995.440918, 6.885561);}
GameTextForPlayer(playerid,"~g~Welcome to ~w~Stunt City 2 ! ~y~BY CMG 4 LIFE",2500,3);}
new name[MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s has joined Stunt City 2, type /stuntcity2 to join", name);
SendClientMessageToAll(COLOR_GREEN, string);
return 1;
}
Alles anzeigen
Hilft mir plz einer...
Mfg
Dennis