22.04.2015, 15:28
Well I mapped some textured map and I now can't get to script it and view it so I can take screenshots of it and post it on the forums. After I add the code to ongamemodeint I get those errors:
And here's my script
Anyone help me? Should I add any includes or fix anything, thank you.
Код:
D:\Program Files\ATG_San_and_njeklik.com\Texture-Studio-master\gamemodes\bare.pwn(63) : error 017: undefined symbol "CreateDynamicObject" D:\Program Files\ATG_San_and_njeklik.com\Texture-Studio-master\gamemodes\bare.pwn(64) : error 001: expected token: ",", but found "..." D:\Program Files\ATG_San_and_njeklik.com\Texture-Studio-master\gamemodes\bare.pwn(64) : error 029: invalid expression, assumed zero D:\Program Files\ATG_San_and_njeklik.com\Texture-Studio-master\gamemodes\bare.pwn(64) : error 029: invalid expression, assumed zero D:\Program Files\ATG_San_and_njeklik.com\Texture-Studio-master\gamemodes\bare.pwn(64) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.
Код:
public OnGameModeInit() { LoadCustomMaps(); //all the rest of the public((I don't know what to ADD here) return 1; } LoadCustomMaps() { new tmpobject; tmpobject = CreateDynamicObject(...); SetObjectMaterial(tmpobject....); //all the rest of the map((Here's where I add my code return 1; } SetGameModeText("Texture Studio"); ShowPlayerMarkers(1); ShowNameTags(1); AllowAdminTeleport(1); UsePlayerPedAnims(); AddPlayerClass(265,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1); return 1; }