if(strcmp(cmd, "/me", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pBanished] == 1)
{
SendClientMessage(playerid, COLOR_GREY, "YOU CAN'T DO SHIT!");
return 1;
}
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " You havent logged in yet !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /me [action]");
return 1;
}
format(string, sizeof(string), "* %s %s", sendername, result);
ProxDetectorVw(30.0, GetPlayerVirtualWorld(playerid), playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
printf("%s", string);
}
return 1;
}
if(strcmp(cmd, "/do", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " You did not log in yet !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /do [action]");
return 1;
}
format(string, sizeof(string), "* %s %s", sendername, result);
ProxDetector(30.0, playerid, string, COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE);
printf("%s", string);
}
return 1;
}
if(strcmp(cmd, "/b", true) == 0)//local ooc
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pBanished] == 1)
{
SendClientMessage(playerid, COLOR_GREY, "YOU CAN'T DO SHIT!");
return 1;
}
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " You havent logged in yet !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /b [local ooc chat]");
return 1;
}
format(string, sizeof(string), "%s Says: (( %s ))", sendername, result);
ProxDetectorVw(20.0, GetPlayerVirtualWorld(playerid), playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
printf("%s", string);
}
return 1;
}
if(strcmp(cmd, "/close", true) == 0 || strcmp(cmd, "/c", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pBanished] == 1)
{
SendClientMessage(playerid, COLOR_GREY, "YOU CAN'T DO SHIT!");
return 1;
}
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " You havent logged in yet !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /©lose [close chat text]");
return 1;
}
format(string, sizeof(string), "%s Says: %s", sendername, result);
ProxDetectorVw(3.0, GetPlayerVirtualWorld(playerid), playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
printf("%s", string);
}
return 1;
}
if(strcmp(cmd, "/shout", true) == 0 || strcmp(cmd, "/s", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pBanished] == 1)
{
SendClientMessage(playerid, COLOR_GREY, "YOU CAN'T DO SHIT!");
return 1;
}
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " You havent logged in yet !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/s)hout [local chat]");
return 1;
}
format(string, sizeof(string), "%s Shouts: %s!", sendername, result);
ProxDetectorVw(25.0, GetPlayerVirtualWorld(playerid), playerid, string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_FADE1,COLOR_FADE2);
printf("%s", string);
}
return 1;
}
C:\Users\Jaua\Downloads\gta-rp\gamemodes\GTARP.pwn(1298) : error 017: undefined symbol "string" C:\Users\Jaua\Downloads\gta-rp\gamemodes\GTARP.pwn(1298) : error 017: undefined symbol "string" C:\Users\Jaua\Downloads\gta-rp\gamemodes\GTARP.pwn(1298) : error 029: invalid expression, assumed zero C:\Users\Jaua\Downloads\gta-rp\gamemodes\GTARP.pwn(1298) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
format(string, sizeof(string), "* %s %s", sendername, params);
C:\Users\Jaua\Downloads\gta-rp\gamemodes\GTARP.pwn(1284) : warning 217: loose indentation C:\Users\Jaua\Downloads\gta-rp\gamemodes\GTARP.pwn(1302) : error 017: undefined symbol "sendername" C:\Users\Jaua\Downloads\gta-rp\gamemodes\GTARP.pwn(1303) : error 017: undefined symbol "ProxDetectorVw" C:\Users\Jaua\Downloads\gta-rp\gamemodes\GTARP.pwn(1319) : error 017: undefined symbol "sendername" C:\Users\Jaua\Downloads\gta-rp\gamemodes\GTARP.pwn(1319) : error 017: undefined symbol "sendername" C:\Users\Jaua\Downloads\gta-rp\gamemodes\GTARP.pwn(1319) : error 029: invalid expression, assumed zero C:\Users\Jaua\Downloads\gta-rp\gamemodes\GTARP.pwn(1319) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 6 Errors.
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pBanished] == 1)
{
SendClientMessage(playerid, COLOR_GREY, "YOU CAN'T DO SHIT!");
return 1;
}
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " You havent logged in yet !");
return 1;
}
if(isnull(params))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /me [action]");
return 1;
}
format(string, sizeof(string), "* %s %s", sendername, params);
ProxDetectorVw(30.0, GetPlayerVirtualWorld(playerid), playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
printf("%s", string);
}
return 1;
}
CMD:do(playerid, params[])
{
new string[128];
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " You did not log in yet !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
C:\Users\Jaua\Downloads\gta-rp\gamemodes\GTARP.pwn(1307) : error 004: function "ProxDetectorVw" is not implemented C:\Users\Jaua\Downloads\gta-rp\gamemodes\GTARP.pwn(1310) : warning 217: loose indentation C:\Users\Jaua\Downloads\gta-rp\gamemodes\GTARP.pwn(1332) : error 004: function "ProxDetector" is not implemented C:\Users\Jaua\Downloads\gta-rp\gamemodes\GTARP.pwn(1342) : warning 217: loose indentation C:\Users\Jaua\Downloads\gta-rp\gamemodes\GTARP.pwn(1362) : error 004: function "ProxDetectorVw" is not implemented C:\Users\Jaua\Downloads\gta-rp\gamemodes\GTARP.pwn(1376) : warning 217: loose indentation C:\Users\Jaua\Downloads\gta-rp\gamemodes\GTARP.pwn(1396) : error 004: function "ProxDetectorVw" is not implemented C:\Users\Jaua\Downloads\gta-rp\gamemodes\GTARP.pwn(1411) : warning 217: loose indentation C:\Users\Jaua\Downloads\gta-rp\gamemodes\GTARP.pwn(1431) : error 004: function "ProxDetectorVw" is not implemented Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.
ProxDetectorVw(30.0, GetPlayerVirtualWorld(playerid), playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
printf("%s", string);
}
return 1;
}
CMD:do(playerid, params[])
{
new string[128];
new sendername[MAX_PLAYER_NAME];
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " You did not log in yet !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
if(isnull(params))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /do [action]");
return 1;
}
format(string, sizeof(string), "* %s %s", sendername, params);
ProxDetector(30.0, playerid, string, COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE);
printf("%s", string);
}
return 1;
}
CMD:b(playerid, params[])
{
new string[128];
new sendername[MAX_PLAYER_NAME];
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pBanished] == 1)
{
SendClientMessage(playerid, COLOR_GREY, "YOU CAN'T DO SHIT!");
return 1;
}
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " You havent logged in yet !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
if(isnull(params))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /b [local ooc chat]");
return 1;
}
format(string, sizeof(string), "%s Says: (( %s ))", sendername, params);
ProxDetectorVw(20.0, GetPlayerVirtualWorld(playerid), playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
printf("%s", string);
}
return 1;
}
CMD:c(playerid, params[])
{
return cmd_close(playerid, params);
}
CMD:close(playerid, params[])
{
new string[128];
new sendername[MAX_PLAYER_NAME];
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pBanished] == 1)
{
SendClientMessage(playerid, COLOR_GREY, "YOU CAN'T DO SHIT!");
return 1;
}
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " You havent logged in yet !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
if(isnull(params))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /©lose [close chat text]");
return 1;
}
format(string, sizeof(string), "%s Says: %s", sendername, params);
ProxDetectorVw(3.0, GetPlayerVirtualWorld(playerid), playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
printf("%s", string);
}
return 1;
}
CMD:s(playerid, params[])
{
return cmd_shout(playerid, params);
}
CMD:shout(playerid, params[])
{
new string[128];
new sendername[MAX_PLAYER_NAME];
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pBanished] == 1)
{
SendClientMessage(playerid, COLOR_GREY, "YOU CAN'T DO SHIT!");
return 1;
}
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " You havent logged in yet !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
if(isnull(params))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/s)hout [local chat]");
return 1;
}
format(string, sizeof(string), "%s Shouts: %s!", sendername, params);
ProxDetectorVw(25.0, GetPlayerVirtualWorld(playerid), playerid, string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_FADE1,COLOR_FADE2);
printf("%s", string);
}
return 1;
}
forward ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5);
forward ProxDetectorVw(Float:radi, vWorld, playerid, string[],col1,col2,col3,col4,col5);
ProxDetectorVw(30.0, GetPlayerVirtualWorld(playerid), playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
ProxDetectorVw(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
C:\Users\Jaua\Downloads\gta-rp\gamemodes\GTARP.pwn(1307) : error 004: function "ProxDetectorVw" is not implemented C:\Users\Jaua\Downloads\gta-rp\gamemodes\GTARP.pwn(1310) : warning 217: loose indentation C:\Users\Jaua\Downloads\gta-rp\gamemodes\GTARP.pwn(1332) : error 004: function "ProxDetector" is not implemented C:\Users\Jaua\Downloads\gta-rp\gamemodes\GTARP.pwn(1342) : warning 217: loose indentation C:\Users\Jaua\Downloads\gta-rp\gamemodes\GTARP.pwn(1362) : error 004: function "ProxDetectorVw" is not implemented C:\Users\Jaua\Downloads\gta-rp\gamemodes\GTARP.pwn(1376) : warning 217: loose indentation C:\Users\Jaua\Downloads\gta-rp\gamemodes\GTARP.pwn(1396) : error 004: function "ProxDetectorVw" is not implemented C:\Users\Jaua\Downloads\gta-rp\gamemodes\GTARP.pwn(1411) : warning 217: loose indentation C:\Users\Jaua\Downloads\gta-rp\gamemodes\GTARP.pwn(1431) : error 004: function "ProxDetectorVw" is not implemented Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.
ProxDetectorVw(30.0,playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
printf("%s", string);
}
return 1;
}
CMD:do(playerid, params[])
{
new string[128];
new sendername[MAX_PLAYER_NAME];
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " You did not log in yet !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
if(isnull(params))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /do [action]");
return 1;
}
format(string, sizeof(string), "* %s %s", sendername, params);
ProxDetector(30.0, playerid, string, COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE);
printf("%s", string);
}
return 1;
}
CMD:b(playerid, params[])
{
new string[128];
new sendername[MAX_PLAYER_NAME];
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pBanished] == 1)
{
SendClientMessage(playerid, COLOR_GREY, "YOU CAN'T DO SHIT!");
return 1;
}
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " You havent logged in yet !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
if(isnull(params))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /b [local ooc chat]");
return 1;
}
format(string, sizeof(string), "%s Says: (( %s ))", sendername, params);
ProxDetectorVw(20.0,playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
printf("%s", string);
}
return 1;
}
CMD:c(playerid, params[])
{
return cmd_close(playerid, params);
}
CMD:close(playerid, params[])
{
new string[128];
new sendername[MAX_PLAYER_NAME];
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pBanished] == 1)
{
SendClientMessage(playerid, COLOR_GREY, "YOU CAN'T DO SHIT!");
return 1;
}
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " You havent logged in yet !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
if(isnull(params))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /©lose [close chat text]");
return 1;
}
format(string, sizeof(string), "%s Says: %s", sendername, params);
ProxDetectorVw(3.0,playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
printf("%s", string);
}
return 1;
}
CMD:s(playerid, params[])
{
return cmd_shout(playerid, params);
}
CMD:shout(playerid, params[])
{
new string[128];
new sendername[MAX_PLAYER_NAME];
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pBanished] == 1)
{
SendClientMessage(playerid, COLOR_GREY, "YOU CAN'T DO SHIT!");
return 1;
}
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " You havent logged in yet !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
if(isnull(params))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/s)hout [local chat]");
return 1;
}
format(string, sizeof(string), "%s Shouts: %s!", sendername, params);
ProxDetectorVw(25.0, playerid, string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_FADE1,COLOR_FADE2);
ProxDetector(3.0,playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_F ADE4,COLOR_FADE5); |