26.01.2010, 07:29
Thanks for your reply, I'll try to do it. Ah and yes the menu is opened via command.
The script. Something like this?
I got these errors.
The script. Something like this?
Код:
if(strcmp(cmdtext, "/boxing", true) == 0) { if(DMZone[playerid] == 1) return ShowPlayerDialog(playerid,TELEWARN,DIALOG_STYLE_MSGBOX,"Error:","Teleporting Error!\n\n-Sorry But you can't Teleport to another area while in a dm. Type /kill to leave the DM.","OK","KILL ME"); DMZone[playerid] = 1; new rands = random(sizeof(RandomPlayerSpawns)); SetPlayerPos(playerid, RandomPlayerSpawnsBoxing[rand][0], RandomPlayerSpawnsBoxing[rand][1], RandomPlayerSpawnsBoxing[rand][2]); SetPlayerInterior(playerid, 0); new rands = random(sizeof(80, 81)); new Skins[] = {80, 81}; SetPlayerSkin(playerid, 80, 81[rand]); ResetPlayerWeapons(playerid); GameTextForPlayer(playerid, "~y~Boxing", 4000, 6); return 1; }
Код:
C:\Documents and Settings\Juan & Miguel\Desktop\Stunt Paradise 0.3a\pawno\include\cps.inc(140) : warning 208: function with tag result used before definition, forcing reparse C:\Documents and Settings\Juan & Miguel\Desktop\Stunt Paradise 0.3a\gamemodes\SP.pwn(2136) : error 017: undefined symbol "rand" C:\Documents and Settings\Juan & Miguel\Desktop\Stunt Paradise 0.3a\gamemodes\SP.pwn(2138) : error 021: symbol already defined: "rands" C:\Documents and Settings\Juan & Miguel\Desktop\Stunt Paradise 0.3a\gamemodes\SP.pwn(2138) : error 020: invalid symbol name "" C:\Documents and Settings\Juan & Miguel\Desktop\Stunt Paradise 0.3a\gamemodes\SP.pwn(2138) : error 029: invalid expression, assumed zero C:\Documents and Settings\Juan & Miguel\Desktop\Stunt Paradise 0.3a\gamemodes\SP.pwn(2138) : fatal error 107: too many error messages on one line