filterscripts\auto.pwn(83) : error 017: undefined symbol "cmd" filterscripts\auto.pwn(86) : error 017: undefined symbol "tmp" filterscripts\auto.pwn(86) : error 017: undefined symbol "idx" filterscripts\auto.pwn(87) : error 017: undefined symbol "tmp" filterscripts\auto.pwn(88) : error 017: undefined symbol "tmp" filterscripts\auto.pwn(89) : error 017: undefined symbol "tmp" filterscripts\auto.pwn(89) : error 017: undefined symbol "idx" filterscripts\auto.pwn(90) : error 017: undefined symbol "tmp" filterscripts\auto.pwn(91) : error 017: undefined symbol "tmp" filterscripts\auto.pwn(174) : warning 203: symbol is never used: "ret_memcpy"
new tmp[128], idx, cmd[128];
filterscripts\auto.pwn(174) : warning 203: symbol is never used: "ret_memcpy" |
filterscripts\auto.pwn(83) : error 017: undefined symbol "cmd" filterscripts\auto.pwn(86) : error 017: undefined symbol "tmp" filterscripts\auto.pwn(86) : error 017: undefined symbol "idx" filterscripts\auto.pwn(87) : error 017: undefined symbol "tmp" filterscripts\auto.pwn(8 ![]() filterscripts\auto.pwn(89) : error 017: undefined symbol "tmp" filterscripts\auto.pwn(89) : error 017: undefined symbol "idx" filterscripts\auto.pwn(90) : error 017: undefined symbol "tmp" filterscripts\auto.pwn(91) : error 017: undefined symbol "tmp" |
You need to show us the lines of code where the errors appear on.
But presumably you're using a GF edit, so adding (near line 83) this code should fix your errors: pawn Код:
|
C:\Users\Joe\Desktop\new samp\filterscripts\auto.pwn(87) : error 047: array sizes do not match, or destination array is too small C:\Users\Joe\Desktop\new samp\filterscripts\auto.pwn(90) : error 047: array sizes do not match, or destination array is too small C:\Users\Joe\Desktop\new samp\filterscripts\auto.pwn(175) : warning 203: symbol is never used: "ret_memcpy"
forward AutoFix(); forward NitroReset(); //[Defines] #define COLOR_RED 0xAA3333AA #define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1 #define FILTERSCRIPT #define Driver 0 #define Passanger 2 #define PRESSED(%0) \ (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0))) new countpos[MAX_PLAYERS]; new InCar[MAX_PLAYERS]; new WhatCar[MAX_PLAYERS]; new Float:LastLife[200]; public OnFilterScriptInit() { print("\n--------------------------------------"); print(" nos/nofall/fix/flip! "); print("--------------------------------------\n"); SetTimer("AutoFix", 1000, 1); SetTimer("NitroReset", 3000, 1); return 1; } public NitroReset() { for(new i = 0; i<MAX_PLAYERS; i++) { if(!IsPlayerInInvalidNosVehicle(i,GetPlayerVehicleID(i))) //ty @ [fackin'] luke //notice the "!" { new vehicle = GetPlayerVehicleID(i); AddVehicleComponent(vehicle, 1010); } } } IsPlayerInInvalidNosVehicle(playerid,vehicleid) { #define MAX_INVALID_NOS_VEHICLES 29 new InvalidNosVehicles[MAX_INVALID_NOS_VEHICLES] = { 581,523,462,521,463,522,461,448,468,586, 509,481,510,472,473,493,595,484,430,453, 452,446,454,590,569,537,538,570,449 }; vehicleid = GetPlayerVehicleID(playerid); if(IsPlayerInVehicle(playerid,vehicleid)) { for(new i = 0; i < MAX_INVALID_NOS_VEHICLES; i++) { if(GetVehicleModel(vehicleid) == InvalidNosVehicles[i]) { return true; } } } return false; } public OnFilterScriptExit() { return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { new tmp[128], idx, cmd[128]; if(strcmp(cmd, "/spray", true) == 0) { new color1, color2; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /spray [color1] [color2]"); color1 = strval(tmp); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /spray [color1] [color2]"); color2 = strval(tmp); ChangeVehicleColor(GetPlayerVehicleID(playerid), color1, color2); return 1; } return 1; } public OnPlayerConnect(playerid) { countpos[playerid] = 0; return 1; } public AutoFix() { for(new playerid=0; playerid<MAX_PLAYERS; playerid++) { if(IsPlayerConnected(playerid)) { new Float:health, cid; if (IsPlayerInAnyVehicle(playerid)) { cid = GetPlayerVehicleID(playerid); GetVehicleHealth(cid, health); if (health < 950) { RepairVehicle(GetPlayerVehicleID(playerid)); } } } } return 1; } public OnPlayerUpdate(playerid){ if(!IsPlayerInAnyVehicle(playerid))return 1; new Float:LifeNow; GetVehicleHealth(GetPlayerVehicleID(playerid), LifeNow); if(LifeNow == 249.0 && LastLife[playerid] > 250){ new Float:A; GetVehicleZAngle(GetPlayerVehicleID(playerid), A); SetVehicleZAngle(GetPlayerVehicleID(playerid), A); SetVehicleHealth(GetPlayerVehicleID(playerid), LastLife[playerid]); } LastLife[playerid] = LifeNow; return 1; } public OnPlayerExitVehicle(playerid, vehicleid) { InCar[playerid] = 0; return 1; } public OnPlayerStateChange(playerid, newstate, oldstate) { if(oldstate == PLAYER_STATE_DRIVER) { if(newstate == PLAYER_STATE_ONFOOT) { if(InCar[playerid] == 1) { PutPlayerInVehicle(playerid, WhatCar[playerid], Driver); } } } if(oldstate == PLAYER_STATE_PASSENGER) { if(newstate == PLAYER_STATE_ONFOOT) { if(InCar[playerid] == 1) { PutPlayerInVehicle(playerid, WhatCar[playerid], Passanger); } } } if(oldstate == PLAYER_STATE_ONFOOT) { if(newstate == PLAYER_STATE_DRIVER || PLAYER_STATE_PASSENGER) { InCar[playerid] = 1; WhatCar[playerid] = GetPlayerVehicleID(playerid); } } return 1; }