~ Menus are driving me crazy :S
#1

After failing to creating menususing normal scripting, i'm using now a app called Menu Creator by Mac, but i'm reciving 18 warnings about my code, all they saying: "tag mismatch".

http://pastebin.com/m6f70a820

Sorry, i can't insert code tags.

C:\Documents and Settings\User\Desktop\gps.pwn(81) : warning 213: tag mismatch
C:\Documents and Settings\User\Desktop\gps.pwn(81) : warning 213: tag mismatch
C:\Documents and Settings\User\Desktop\gps.pwn(90) : warning 213: tag mismatch
C:\Documents and Settings\User\Desktop\gps.pwn(90) : warning 213: tag mismatch
C:\Documents and Settings\User\Desktop\gps.pwn(99) : warning 213: tag mismatch
C:\Documents and Settings\User\Desktop\gps.pwn(99) : warning 213: tag mismatch
C:\Documents and Settings\User\Desktop\gps.pwn(10 : warning 213: tag mismatch
C:\Documents and Settings\User\Desktop\gps.pwn(10 : warning 213: tag mismatch
C:\Documents and Settings\User\Desktop\gps.pwn(117) : warning 213: tag mismatch
C:\Documents and Settings\User\Desktop\gps.pwn(117) : warning 213: tag mismatch
C:\Documents and Settings\User\Desktop\gps.pwn(126) : warning 213: tag mismatch
C:\Documents and Settings\User\Desktop\gps.pwn(126) : warning 213: tag mismatch
C:\Documents and Settings\User\Desktop\gps.pwn(135) : warning 213: tag mismatch
C:\Documents and Settings\User\Desktop\gps.pwn(135) : warning 213: tag mismatch
C:\Documents and Settings\User\Desktop\gps.pwn(144) : warning 213: tag mismatch
C:\Documents and Settings\User\Desktop\gps.pwn(144) : warning 213: tag mismatch
C:\Documents and Settings\User\Desktop\gps.pwn(149) : warning 213: tag mismatch
C:\Documents and Settings\User\Desktop\gps.pwn(149) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


18 Warnings.
Reply
#2

pawn Код:
SetPlayerCheckpoint(playerid,1544.0143,-1675.6829,13.5576,5);
You need to add the size as a float.

SetPlayerCheckpoint(playerid,1544.0143,-1675.6829,13.5576,5.0);
Reply
#3

Under gmenu = CreateMenu("~r~G~w~PS", 1, 50.0, 180.0, 200.0, 200.0);
You can add a menu column;
SetMenuColumnHeader(Carstereo,0,"name");

As I see you made a mistaks under onplayerselectedmenurow;

You don't need 'return' for every case.
It will look like this;

new Menu:current;
current = GetPlayerMenu(playerid);
if(current == gmenu)
{
switch(row)
{
case 0:{
if(IsWithGPS[playerid] == 1) return SendClientMessage(playerid, RED, "* Vocк jб possui um local marcado, use '/desmarcar' para efetuar o processo corretamente.");

SendClientMessage(playerid, GREEN, "* Delegacia de Policia (DP) marcada com sucesso.");
SetPlayerCheckpoint(playerid,1544.0143,-1675.6829,13.5576,5);
HideMenuForPlayer(playerid, gmenu);
}
}
case 1:{
if(IsWithGPS[playerid] == 1) return SendClientMessage(playerid, RED, "* Vocк jб possui um local marcado, use '/desmarcar' para efetuar o processo corretamente.");

To the end like that
Hope I helped.

Ecko

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)