C:\Users\Mijn pc\Desktop\test one.pwn(89) : error 017: undefined symbol "cmd" C:\Users\Mijn pc\Desktop\test one.pwn(93) : error 017: undefined symbol "sendername" C:\Users\Mijn pc\Desktop\test one.pwn(93) : error 017: undefined symbol "sendername" C:\Users\Mijn pc\Desktop\test one.pwn(93) : error 029: invalid expression, assumed zero C:\Users\Mijn pc\Desktop\test one.pwn(93) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors. |
if(strcmp(cmd, "/b", true) == 0) { if(IsPlayerConnected(playerid)) { GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } GetPlayerName(playerid, sendername, MAX_PLAYER_NAME); for (new i = 0; i < MAX_PLAYER_NAME; i++) if (sendername[i] == '_') sendername[i] = ' '; new offset = idx; new result[96]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /b [local ooc chat]"); return 1; } ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_F ADE4,COLOR_FADE5); } return 1; } |
if(!strcmp(cmdtext, "/b", true, 2) && cmdtext[2] == ' ')
{
if(strlen(cmdtext) == 3)
{
SendClientMessage(playerid, 0xFF0000FF, "USAGE: /b [local ooc chat]");
return 1;
}
new str[128];
GetPlayerName(playerid, str, sizeof(str));
format(str, sizeof(str), "[OOC-Chat] %s: %s", str, cmdtext[4]);
ProxDetector(20.0, playerid, str,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_F ADE4,COLOR_FADE5);
return 1;
if(strcmp(cmdtext, "/b", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new sendername[128];
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
GetPlayerName(playerid, sendername, MAX_PLAYER_NAME);
for (new i = 0; i < MAX_PLAYER_NAME; i++)
if (sendername[i] == '_')
sendername[i] = ' ';
new offset = idx;
new result[96];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /b [local ooc chat]");
return 1;
}
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_F ADE4,COLOR_FADE5);
}
return 1;
}
if(!strcmp(cmdtext, "/b", true, 2) && cmdtext[2] == ' ')
{
if(strlen(cmdtext) == 3)
{
SendClientMessage(playerid, 0xFF0000FF, "USAGE: /b [local ooc chat]");
return 1;
}
new str[128], plName[MAX_PLAYER_NAME];
GetPlayerName(playerid, plName, sizeof(plName));
format(str, sizeof(str), "[OOC-Chat] %s: %s", plName, cmdtext[3]);
ProxDetector(20.0, playerid, str,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_F ADE4,COLOR_FADE5);
return 1;
}
C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 89) : warning 217: loose indentation C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 99) : error 017: undefined symbol "ProxDetector" C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 99) : error 017: undefined symbol "ADE4" C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 99) : error 029: invalid expression, assumed zero C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 99) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
ProxDetector(20.0, playerid, str,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 89) : warning 217: loose indentation C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 99) : error 017: undefined symbol "ProxDetector" C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 99) : error 029: invalid expression, assumed zero C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 99 -- 100) : error 029: invalid expression, assumed zero C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 99 -- 100) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
if(!strcmp(cmdtext, "/b", true, 2) == 0)
{
if(!strlen(cmdtext)) return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /b [local ooc chat]");
new str[128], plName[MAX_PLAYER_NAME];
GetPlayerName(playerid, plName, sizeof(plName));
format(str, sizeof(str), "[OOC-Chat] %s: %s", plName, cmdtext);
ProxDetector(20.0, playerid, str,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_F ADE4,COLOR_FADE5);
return 1;
}
C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 89) : warning 217: loose indentation C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 89) : warning 213: tag mismatch C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 95) : error 017: undefined symbol "ProxDetector" C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 9 : warning 209: function "OnPlayerCommandText" should return a value Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |
ProxDetector(20.0, playerid, str,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
SendClientMessageToAll(COLOR_FADE1, str);
if(!strcmp(cmdtext, "/b", true, 2) == 0)
{
if(!strlen(cmdtext)) return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /b [local ooc chat]");
new str[128], plName[MAX_PLAYER_NAME];
GetPlayerName(playerid, plName, sizeof(plName));
format(str, sizeof(str), "[OOC-Chat] %s: %s", plName, cmdtext);
ProxDetector(20.0, playerid, str,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_F ADE4,COLOR_FADE5);
return 0;
}
if(!strcmp(cmdtext, "/b", true, 2) && cmdtext[2] == ' ')
{
if(strlen(cmdtext) == 3)
{
SendClientMessage(playerid, 0xFF0000FF, "USAGE: /b [local ooc chat]");
return 1;
}
new str[128], plName[MAX_PLAYER_NAME];
GetPlayerName(playerid, plName, sizeof(plName));
format(str, sizeof(str), "[OOC-Chat] %s: %s", plName, cmdtext[3]);
ProxDetector(20.0, playerid, str,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
return 1;
}
C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 89) : warning 217: loose indentation C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 99) : error 035: argument type mismatch (argument 3) C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 102) : warning 209: function "OnPlayerCommandText" should return a value C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 104) : error 001: expected token: ")", but found "&" C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 104) : error 001: expected token: ";", but found "&" C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 106) : error 001: expected token: ")", but found "&" C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 106) : error 029: invalid expression, assumed zero C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 10 : error 010: invalid function or declaration C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 113) : error 021: symbol already defined: "GetPlayerPos" C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 115) : error 010: invalid function or declaration C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 117) : error 010: invalid function or declaration C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 120) : error 021: symbol already defined: "GetPlayerPos" C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 125) : error 010: invalid function or declaration C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 129) : error 010: invalid function or declaration C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 133) : error 010: invalid function or declaration C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 137) : error 010: invalid function or declaration C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 141) : error 010: invalid function or declaration C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 14 : error 010: invalid function or declaration C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 150) : warning 203: symbol is never used: "oldposx" C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 150) : warning 203: symbol is never used: "oldposy" C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 150) : warning 203: symbol is never used: "oldposz" C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 150) : warning 203: symbol is never used: "posx" C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 150) : warning 203: symbol is never used: "posy" C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 150) : warning 203: symbol is never used: "posz" C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 150) : warning 203: symbol is never used: "tempposx" C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 150) : warning 203: symbol is never used: "tempposy" C:\Users\Mijn pc\Desktop\davy's mapke\SERVER\roleplay\Andre's\gamemodes\test1.pwn( 150) : warning 203: symbol is never used: "tempposz" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 16 Errors. |