07.08.2013, 14:04
Mas ae da esse erro:
Код:
C:\Users\Usuario\Desktop\adm system.pwn(51) : error 017: undefined symbol "Se" C:\Users\Usuario\Desktop\adm system.pwn(51) : warning 215: expression has no effect C:\Users\Usuario\Desktop\adm system.pwn(51) : warning 215: expression has no effect C:\Users\Usuario\Desktop\adm system.pwn(51) : error 001: expected token: ";", but found ")" C:\Users\Usuario\Desktop\adm system.pwn(51) : error 029: invalid expression, assumed zero C:\Users\Usuario\Desktop\adm system.pwn(51) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Код:
#include <a_samp> #include <dini> #include <sscanf> #include <zcmd> #define COR_ERRO 0xFF0000FF #define COR_AZUL enum pDados { pNome, pDinheiro, bool:pAdmtrabalhando = false, bool:pAdmjogando = false, pAdmin, pMatou, pMorreu, }; new ArrayDados[MAX_PLAYERS][pDados]; CMD:dinheiro(playerid, params[]) { new plid, valor; if(IsPlayerAdmin(playerid)) { if(sscanf(params, "ud", plid, valor)) { SendClientMessage(playerid, 0xFF0000FF, "Digite: /dinheiro [id] [valor]"); return 1; } if(IsPlayerConnected(plid)) { GivePlayerMoney(plid, valor); SendClientMessage(playerid, 0xFFFFFFFF, "comando efetuado com sucesso"); } else SendClientMessage(playerid, 0xFF0000FF, "|ERRO| O jogado com esse id nao esta conectado!"); } else SendClientMessage(playerid, 0xFF0000FF, "|ERRO|Voce nao tem altorizacao para utilizar esse comando!"); return 1; } CMD:admtrabalhar(playerid,params[]) { if(ArrayDados[playerid][pAdmin] > 0) { new nome[32]; GetPlayerName(playerid, nome, sizeof(nome)); ArrayDados[playerid][pAdmtrabalhando] = true; ArrayDados[playerid][pAdmjogando] = false; Se(COR_AZUL, "\n O Administrador %s esta do modo de trabalho! \n", nome); } else { SendClientMessage(playerid, COR_ERRO, "\n |ERRO|Voce nao e um Administrador! \n"); } return 1; }